package com.qq.data.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

@ToString
@Getter
@Setter
@Entity
@Table(name="user")
@ApiModel
@JsonIgnoreProperties
public class User implements Serializable {
   @Id
   private int  qq;

   private String  password;

   private String  userName;

   private int  sex;
   @DateTimeFormat(pattern = "yyyy-MM-dd")
   private Date birthday;

   private String  phone;
   private String  email;

   private int  prov;

   private int  city;

   private int  area;

   private String  picBig;
   private String  picSm;
   private int  type;
   private int  status;

   private LocalDateTime createTime;

}
